package context.render.light;

import context.render.shader.Shader;
import math.vec3;

public class Light
{
    
    public vec3 mColor;
    
    public vec3 mDir;
    
    public double mAmbient;
    
    
    public Light()
    {
        this.mColor = new vec3(1);
        this.mDir = new vec3(0, 0, -1);
        this.mAmbient = 0.2;
    }
    
    
    public void bind(
            Shader aShader, 
            int aID)
    {
        aShader.uniform3d("LIGHTS[" + aID + "].Color", this.mColor);
        aShader.uniform3d("LIGHTS[" + aID + "].Dir", this.mDir);
        aShader.uniform1d("LIGHTS[" + aID + "].Ambient", this.mAmbient);
    }
    
}
